<template>
	<view class="pages">
		<block v-if="os == 'android'">
			<video-box-android ref="video"></video-box-android>
		</block>
		<block v-else>
			<video-box-ios ref="video"></video-box-ios>
		</block>
	</view>
</template>

<script>
import videoBoxAndroid from "@/components/app-video-box/web-view-android.nvue";
import videoBoxIos from "@/components/app-video-box/web-view-ios.vue";
export default {
	components:{
		videoBoxAndroid,
		videoBoxIos
	},
	data() {
		return {
			os: uni.getSystemInfoSync().platform
		};
	},
	mounted() {
		this.$nextTick(function(){
			let videoInfo = {
				videoUrl: 'https://v2.dious.cc/20200902/95VrD2hp/index.m3u8'
			};
			this.$refs.video.switchVideo(videoInfo);
		})
	},
	onLoad() {
		
	},
	methods: {
		
	}
};
</script>

<style lang="scss">
	.pages {
		background-color: #282C35;
		
	}
</style>
